import request from '@/utils/request'

// 查询签署文件列表
export function listSignFile(query) {
  return request({
    url: '/work/signFile/list',
    method: 'get',
    params: query
  })
}

// 查询签署文件详细
export function getSignFile(signFileId) {
  return request({
    url: '/work/signFile/' + signFileId,
    method: 'get'
  })
}

// 新增签署文件
export function addSignFile(data) {
  return request({
    url: '/work/signFile',
    method: 'post',
    data: data
  })
}

// 修改签署文件
export function updateSignFile(data) {
  return request({
    url: '/work/signFile',
    method: 'put',
    data: data
  })
}

// 删除签署文件
export function delSignFile(signFileId) {
  return request({
    url: '/work/signFile/' + signFileId,
    method: 'delete'
  })
}

export function listWorkSignFileList(signId) {
  return request({
    url: '/work/signFile/listWorkSignFileList/' + signId,
    method: 'get',
  })
}

// 获取盖章文件详细信息
export function getInfoWorkSignFile(signId) {
  return request({
    url: '/work/signFile/getInfoWorkSignFile/' + signId,
    method: 'get',
  })
}
